package edu.je.prs.Controller;

import com.junqson.je.common.model.ApiResult;
import edu.je.prs.Service.MatchService;
import edu.je.prs.client.MathClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description:
 * @author: Anhlaidh
 * @date: 2021-04-20 17:11
 */
@RestController
public class MatchController  implements MathClient {
    @Autowired
    MatchService matchService;
    @RequestMapping("/resume/match")
    public ApiResult match(@RequestParam(name = "id") int id) {
        return matchService.matchPosition(id);
    }
}
